package xyz.mantianx.service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author starrysky
 * @title: AspectMain
 * @projectName spring5
 * @description: TODO
 * @date 2021/2/302:36
 */
public class AspectMain {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(MyConfiguration.class);
        Human humanImpl = (Human) context.getBean("humanImpl");
        humanImpl.eat();
        humanImpl.drink();
        humanImpl.go();
        humanImpl.sleep();

    }
}
